// 导入基准路径

import request from '@/utils/request'

// 获取联想建议，请求获取数据
export const getSearchSuggestion = q => {
    return request({
        method: 'GET',
        url: '/app/v1_0/suggestion',
        params: {
            q
        }

    })
}

//获取搜索结果
export function getSearchResult(params) {
    return request({
        method: 'GET',
        url: '/app/v1_0/search',
        params
    })
}